package com.example.chatzsyproject.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.example.chatzsyproject.R;
import com.example.chatzsyproject.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 收款码
 */
public class ShoumentCodeActivity extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.tv_title)
    TextView tv_title;

    @BindView(R.id.ln_setmoney)
    LinearLayout ln_setmoney;
    @BindView(R.id.re_paymentcode)
    RelativeLayout re_paymentcode;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shoumentcode);
        ButterKnife.bind(this);
        init();
    }

    public void init() {
        tv_title.setText("收款码");
        ln_setmoney.setOnClickListener(this);
        re_paymentcode.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.ln_setmoney:
                startActivity(new Intent(ShoumentCodeActivity.this, ReceivablesAmountActivity.class));
                break;
            case R.id.re_paymentcode:
                startActivity(new Intent(ShoumentCodeActivity.this, PaymentCodeActivity.class));
                finish();
                break;
        }
    }
}
